package top.tagao.m01_structuralPatterns.s_08_composite;
import java.awt.*;
/**
 * 通用形状接口
 * @author fu-xiao-liu
 * @Date 2022/8/6 22:03
 */
public interface Shape {
    int getX();
    int getY();
    int getWidth();
    int getHeight();
    void move(int x, int y);
    boolean isInsideBounds(int x, int y);
    void select();
    void unSelect();
    boolean isSelected();
    void paint(Graphics graphics);
}